<?php /* Smarty version Smarty-3.0.9, created on 2013-05-18 22:06:21
         compiled from "C:/wamp/www/glight/templates\crear_personaje.tpl" */ ?>
<?php /*%%SmartyHeaderCode:193785197fb5d111a99-34876601%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '471ad2036bdccc514d45c452a4d8bd248bfd1b01' => 
    array (
      0 => 'C:/wamp/www/glight/templates\\crear_personaje.tpl',
      1 => 1368914771,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '193785197fb5d111a99-34876601',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

<style type="text/css"> @import url(../css/form.css); </style>

<h3> Crear Personaje</h3> 

<form action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l__global'];?>
crear_personaje.php?option=registrar" method="POST">

    <table id="tableForm" class="tableForm">
        
        <tr>
                <td>
                    Selecciona un videojuego:
                </td>
                <td>
                    <select required name="videojuego">
                        <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('videojuego')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                        <option value="<?php echo $_smarty_tpl->getVariable('videojuego')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
" title="<?php echo $_smarty_tpl->getVariable('videojuego')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
"><?php echo $_smarty_tpl->getVariable('videojuego')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('nombre');?>
</option>
                        <?php endfor; endif; ?>
                    </select>
                </td>
            </tr>
        
                
        <tr>                    
            <td>
                Nombre:
            </td>
            
            <td>
                <input type="text" id="nombre" name="nombre" maxlength="40" 
                               placeholder="Nombre personaje" required>
            </td>
        </tr>

        <tr>
            <td>
                Descripción:
            </td>
            
            <td>
                <textarea id="descripcion" name="descripcion" required 
                                  placeholder="Descripción del personaje"></textarea>                         
            </td>
        </tr>

        <tr>
            <td>
                Comportamiento:
            </td>
            
            <td>
                <textarea id="comportamiento" name="comportamiento" required 
                                  placeholder="Comportamiento del personaje"></textarea>
            </td>
        </tr>
        
        <tr>
            <td>
                Tipo:
            </td>
            
            <td>
                <select required id="tipo" name="tipo">
                    <option value="Principal">Principal</option>
                    <option value="Aliado">Aliado</option>
                    <option value="Enemigo">Enemigo</option>
                    <option value=Neutral">Neutral</option>
                </select>
            </td>
        </tr>
        
        <tr>
            <td>
                Habilidad:
            </td>
                    
            <td>
                <textarea id="habilidad" name="habilidad" required 
                          placeholder="Habilidades del personaje"></textarea>
            </td>
        </tr>
        
        <tr>               
            <input type="hidden"  id="diseñador" name="diseñador" value="<?php echo $_SESSION['empleado']['cedula'];?>
">
        </tr>
        
        <tr>
            <td></td>
            <td>
                <hr>
                <div class="submit">
                    <button class="btn btn-primary" name="crear_personaje">Crear Personaje</button>
                </div>
            </td>
        </tr>
    </table>
</form>


